import { post, get } from "../utils/request";
export const loginAPI = (data) => post("/api/v1/auth/login", data);
export const regAPI = (data) => post("/api/v1/auth/reg", data);

//用户头像
export const userImgAPI = (data) => post("/api/v1/common/upload_file", data);

//获取用户个人信息
export const userAPI = () => get("/api/v1/user/info");
